package org.zebra.captcha.picture;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 验证码 配置属性
 *
 * @author zhanghongbin
 */
@Data
@ConfigurationProperties(prefix = "zebra.captcha.picture")
public class PictureCaptchaProperties {

    private boolean enabled = true;

    /**
     * 验证码类型
     */
    private PictureCaptchaType type = PictureCaptchaType.MATH;

    /**
     * 验证码类别
     */
    private PictureCaptchaCategory category = PictureCaptchaCategory.CIRCLE;

    /**
     * 数字验证码位数
     */
    private Integer numberLength = 1;

    /**
     * 字符验证码长度
     */
    private Integer charLength = 4;
}
